package elitech.vietnam.weatherfashion.service;

import java.util.ArrayList;

public class MyParameter {

	private ArrayList<String> names;
	private ArrayList<Object> values;

	public MyParameter() {
		names = new ArrayList<String>();
		values = new ArrayList<Object>();
	}

	public void add(String name, Object value) {
		names.add(name);
		values.add(value);
	}

	public int size() {
		return names.size();
	}

	public String getName(int index) {
		if (index <= size() && index >= 0)
			return names.get(index);
		return "";
	}

	public Object getValue(int index) {
		if (index <= size() && index >= 0)
			return values.get(index);
		return null;
	}
}
